#ifndef FOREST_PLATFORM_H_
#define FOREST_PLATFORM_H_

#if defined(linux) || defined(__linux) || defined(__linux__)
#define FOREST_PLATFORM_LINUX
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
#define FOREST_PLATFORM_WINDOWS
#endif

#define FOREST_SAFE_DEL(pVal) {if(pVal) delete (pVal); pVal = NULL;}
#define FOREST_SAFE_DEL_ARR(pVal) {if(pVal) delete [] (pVal); pVal = NULL;}
#define FOREST_SAFE_FREE(pVal) {if(pVal) free(pVal); pVal = NULL;}

#endif